package com.geline.easytrans.enums;

import com.geline.easytrans.annotation.DictType;
import com.geline.easytrans.dict.IDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 禁用状态枚举
 * @author: mengxin
 * @date: 2022/9/1 16:07
 */
@DictType(value = "sys_disable", label = "禁用状态")
@AllArgsConstructor
@Getter
public enum SysDisableEnum implements IDict {
    ENABLE("0", "启用"),
    DISABLE("1", "停用");

    private String code;
    private String desc;
    @Override
    public String getLabel() {
        return desc;
    }

    @Override
    public Object getValue() {
        return code;
    }
}
